package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品规格关联对象 sys_goods_spec
 * 
 * @author ruoyi
 * @date 2025-04-30
 */
public class SysGoodsSpec extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 商品id */
    @Excel(name = "商品id")
    private String goodsId;

    /** 规格名称 */
    @Excel(name = "规格名称")
    private String goodsSpecName;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private String goodsNum;

    /** 排序 */
    @Excel(name = "排序")
    private String sort;

    /** 零售价格 */
    @Excel(name = "零售价格")
    private BigDecimal retailPrice;

    /** 会员价 */
    @Excel(name = "会员价")
    private BigDecimal memberMoney;

    /** 分佣比例 */
    @Excel(name = "分佣比例")
    private String commission;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setGoodsId(String goodsId) 
    {
        this.goodsId = goodsId;
    }

    public String getGoodsId() 
    {
        return goodsId;
    }

    public void setGoodsSpecName(String goodsSpecName) 
    {
        this.goodsSpecName = goodsSpecName;
    }

    public String getGoodsSpecName() 
    {
        return goodsSpecName;
    }

    public void setGoodsNum(String goodsNum) 
    {
        this.goodsNum = goodsNum;
    }

    public String getGoodsNum() 
    {
        return goodsNum;
    }

    public void setSort(String sort) 
    {
        this.sort = sort;
    }

    public String getSort() 
    {
        return sort;
    }

    public void setRetailPrice(BigDecimal retailPrice) 
    {
        this.retailPrice = retailPrice;
    }

    public BigDecimal getRetailPrice() 
    {
        return retailPrice;
    }

    public void setMemberMoney(BigDecimal memberMoney) 
    {
        this.memberMoney = memberMoney;
    }

    public BigDecimal getMemberMoney() 
    {
        return memberMoney;
    }

    public void setCommission(String commission) 
    {
        this.commission = commission;
    }

    public String getCommission() 
    {
        return commission;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("goodsSpecName", getGoodsSpecName())
            .append("goodsNum", getGoodsNum())
            .append("sort", getSort())
            .append("retailPrice", getRetailPrice())
            .append("memberMoney", getMemberMoney())
            .append("commission", getCommission())
            .toString();
    }
}
